package com.csh.subject.domain.convert;

import com.csh.subject.domain.entity.SubjectInfoBo;
import com.csh.subject.domain.entity.SubjectLabelBo;
import com.csh.subject.domain.entity.SubjectOptionBo;
import com.csh.subject.infra.basic.entity.SubjectInfo;
import com.csh.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Description
 *
 * @Author: Maverick_Csh
 * @Date: 2024/2/26
 */
@Mapper
public interface SubjectInfoConvert {
    SubjectInfoConvert INSTANCE = Mappers.getMapper(SubjectInfoConvert.class);

    SubjectInfo convertBoToInfo(SubjectInfoBo subjectInfoBo);

    SubjectInfoBo convertOptionToBo(SubjectOptionBo subjectOptionBo);

    SubjectInfoBo convertOptionAndInfoToBo(SubjectOptionBo subjectOptionBo,SubjectInfo subjectInfo);

    List<SubjectInfoBo> convertInfoToBoList(List<SubjectInfo> subjectInfoList);
}
